package queueddas;

import java.util.*;

public class Table{
    int seatA = 0;
    int seatB = 0;
    
    public Table(){
        seatA = seatB = 0;

    }

    public int isTableFull(){
        if(seatA == 0 && seatB == 0)
            return -1; //table empty

            else if(seatA == 1 && seatB == 1)
                return 1; //table full

                else
                return 0; //nonfull


    }

    public int isSeatOccuppied(Object seat){
        if(seat == "B"){
            if(seatB == 1)
                return 1; // 1 if occupied
            else
                return 0; // 0 if vacant
        }
        else{
            if(seatA == 1)
                return 1;
            else
                return 0;
        }
    }

    public void sitCostumer(Object seat){
        if(seat == "B"){
            seatB = 1;
        }
        else{
            seatA = 1;
        }
    }

   // public

}

